package com.cyberx.rule.core;

import com.cyberx.rule.api.Rule;
import com.cyberx.rule.api.RuleEngine;

public final class DefaultRuleEngine implements RuleEngine {
  @Override
  public void fire(Rule rule) {
    boolean when = rule.when();
    if (when) {
      rule.then();
    }
  }
}
